<?php
/**
 * Created by PhpStorm.
 * User: Zhanghaiqiang
 * Date: 2019-12-28
 * Time: 14:46
 */

namespace Models\Candy;


use Models\Base\EloquentModel;

class Calendar extends EloquentModel
{
    const TABLE_NAME = "candy_calendar";
    protected $table = self::TABLE_NAME;

    public static function getFullTableTable(){
        return config('database.connections.mysql.prefix').self::TABLE_NAME;
    }

    const DB_FIELD_ID          = 'id';
    const DB_FIELD_DATE        = 'date';
    const DB_FIELD_INTRO       = 'intro';
    const DB_FIELD_CREATED_AT  = 'created_at';
    const DB_FIELD_UPDATED_AT  = 'updated_at';
    const DB_FIELD_DELETED_AT  = 'deleted_at';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        self::DB_FIELD_ID,
        self::DB_FIELD_DATE,
        self::DB_FIELD_INTRO,
        self::DB_FIELD_CREATED_AT,
        self::DB_FIELD_UPDATED_AT,
        self::DB_FIELD_DELETED_AT,
    ];
}